

function updateViews (newDatas) {
  if (newDatas['dealsUsedCurrentBarCount']) {
    updateBarCuponsView(newDatas);    
  }
  if (newDatas['dealBoughtCount']) {
    updateDealBoughtView(newDatas);    
  }
  deleteMessages();
}